package _2025_4_15;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class pathdemo3 {
    public static void main(String[] args) throws FileNotFoundException {
        try(InputStream inputStream=new FileInputStream("D:/temp/java114/abc.txt")){
            try(Scanner scanner=new Scanner(inputStream,"UTF-8")){
                while (scanner.hasNext()){
                    String s=scanner.next();
                    System.out.println(s);
                }
            }

        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
